package com.itbac.mybatisplusspringbootdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbac.mybatisplusspringbootdemo.pojo.User;

import java.util.List;

/**
 * 继承 BaseMapper 是  mybatisplus 的写法,实体类要加注解@TableName
 *
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2021/8/29 13:47
 */
public interface UserMapper extends MyBastMapper<User> {

    List<User> findAll();


    User findById(Long id);
}
